<admintpl file="header" />


<link href="__TMPL__Public/assets/css/infomation.css" rel="stylesheet" />
</head>
<body> 
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('SupervisionPlan/index')}">监理规划管理</a></li>
            <li class="active"><a href="{:U('SupervisionPlan/add')}">新增监理规划</a></li>
        </ul>
        <section class="tab-pane active fade in" id="access">
            <div class="row">
                <div class="col-xs-12 col-md-12 col-lg-12">
                    <div class="panel panel-info">
                        <div class="panel-body">
                            <form class="form-horizontal form-inline tg js-ajax-form" action="{:U('SupervisionPlan/add_post')}" method="post">
                                <div class="row tg-header">
                                    <div class="col-md-12 text-center">
                                        <h3>监理规划</h3>
                                        <hr />
                                    </div>
                                    <div class="col-md-12">
                                        <p class="tg-to"><b>创建人:</b><input type="text" class="input-xt input-name" value="{$us_name}" readonly /></p>
                                        <p class="pull-right tg-serialnum"><b>创建时间:</b><input type="text" class="input-xt" value="{$add_time}" /></p>
                                    </div>
                                </div>
                                <div class="well">
                                    <label class="control-label">请选择附件：</label>
                                    <div class="controls">
                                        <a class="btn upBtn btn-primary" href="javascript:void(0);">上传</a>
                                        <input type="file" id="upFile" name="upFile" style="display:none" />
                                    </div>
                                    
                                </div>
								<div class="form-actions">
									<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
									<a class="btn btn-default" href="javascript:history.back(-1);">{:L('BACK')}</a>
								</div>
							</form>
						</div>
                    </div>
                </div>
            </div>
		</section>     
    </div>
	<script src="__PUBLIC__/js/common.js"></script>
    <script type="text/javascript">
		$(document).ready(function(e) {
			// 选择图片
			$(document).on("click", ".upBtn", function(e) {
				$("#upFile").click();
			});
			// 文件选择器change事件
			$("#upFile").on("change", function(){
				UploadFile("{:U('SupervisionPlan/upload')}", "supervision_plan");
			});
			$(document).on("click", ".delFile", function(){
				if($(this).attr("value") != undefined){
					delFile("{:U('SupervisionPlan/delFile')}", $(this).attr("value"), $(this))
				} else {
					$(this).closest("div").remove();
				}
			});
		});
	</script>
</body>
</html>